// C:\Users\王硕\Desktop\毕设\housing-rental-system-frontend\新建文件夹\vue-demo\src\utils\filters.js
export const formatPhone = (value) => {
  if (!value) return "未设置";
  return value.replace(/(\d{3})\d{4}(\d{4})/, "$1****$2");
};
// 组件中使用
export const formatIdCard = (value) => {
  if (!value) return "未设置";
  return value.replace(/(\d{4})\d{10}(\w{4})/, "$1**********$2");
};
